Replacement to CountingInputStream - a source which counts the number of bytes read from a wrapped source